package uk.co.hs.exceptions;

/**
 * NonNullableColumnException.
 */
public class NonNullableColumnException extends RuntimeException
{
  private static final long serialVersionUID = -4188422581766858199L;

  public NonNullableColumnException(String aMessage)
  {
	  super(aMessage);
  }

  /**
   * @see java.lang.Throwable
   * #toString()
   * {@inheritDoc}
   */
	@Override
	public String toString()
	{
	  StringBuilder sb = new StringBuilder();

	  sb.append("\n"+ getMessage()+"\n");

	  for(StackTraceElement ste : getStackTrace())
	  {
	  	sb.append("\t"+ ste.toString() + "\n");
	  }
	  return sb.toString();
	}
}
